/*
 * riolib_cmd.h
 *
 *  Created on: 2021年3月11日
 *      Author: root
 */

#ifndef RIOLIB_CMD_H_
#define RIOLIB_CMD_H_



int bslRioPortInit(int index);
int bslRioPortDestory();

int bslRioGetID();
int bslRioSetID(uint32_t ID);


int bslRioWriteRemoteReg(uint32_t tgt_destid ,uint8_t tgt_hc,uint32_t offset,uint32_t data);
int bslRioWriteLocalReg(uint32_t offset,uint32_t data);

int bslRioReadRemoteReg(uint32_t tgt_destid ,uint8_t tgt_hc,uint32_t offset);
int bslRioReadLocalReg(uint32_t offset);

#endif /* RIOLIB_CMD_H_ */
